<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateConfigsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('configs', function (Blueprint $table) {
            $table->id();
            $table->string('name')->unique()->comment("网站名称");
            $table->string('logo')->nullable()->comment("网站LOGO");
            $table->text('about')->nullable()->comment('关于我们,网站介绍');
            $table->text('profile')->nullable()->default(null)->comment('介绍');
            $table->string('address')->nullable()->comment('联系地址');
            $table->string('mobile')->nullable()->comment('客服电话');
            $table->string('postcode')->nullable()->comment('邮编');
            $table->string('email')->nullable()->comment('邮箱');
            $table->string('wechat')->nullable()->comment('微信号');
            $table->string('coord')->nullable()->default(null)->comment('地图坐标');
            $table->string('recordnumber')->nullable()->comment('备案号');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('configs');
    }
}
